//
//  RightViewController.m
//  1227-163MusicDemo
//
//  Created by 千锋 on 15/12/27.
//  Copyright (c) 2015年 千锋. All rights reserved.
//

#import "RightViewController.h"

#define SCREEN_SIZE [UIScreen mainScreen].bounds.size

@interface RightViewController ()

@end

@implementation RightViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.view.backgroundColor = [UIColor colorWithRed:0 green:0 blue:0 alpha:0.5];

}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/
-(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event{
    NSLog(@"右边视图退下了");
    [UIView animateWithDuration:0.25 animations:^{
        self.view.frame = CGRectMake(SCREEN_SIZE.width, 0, SCREEN_SIZE.width, SCREEN_SIZE.height);
    }];

}
@end
